﻿namespace WeDonekRpc.SqlSugar
{
    public interface IVirtualQueue
    {
        bool IsNull { get; }

        void Delete<IdentityId> ( string table, string col, IdentityId value );
        void Delete<IdentityId> ( string table, string col, IdentityId[] value );
        void Insert ( string table, Dictionary<string, object> values );
        void Insert ( string table, Func<object> values );
        int Submit ( bool isTran = true );
        Task<int> SubmitAsync ( bool isTran = true );
        void Update ( string table, Dictionary<string, object> values, string identityId );
        void Update ( string table, Dictionary<string, object> values, string[] identityIds );
        void Update ( string table, Func<object> values, string identityId );
        void Update ( string table, Func<object> values, string[] identityId );
    }
}